// import axios from 'axios'
import { commonParams } from '@/api/common-query.js'
import { service } from '@/api/service.js'
export function getRankList() {
  // let url = baseURL + '/toplist/detail'
  // let data = Object.assign({}, commonParams, {})
  // return axios.get(url, {
  //   params: data
  // })
  // .then((res) => {
  //   return Promise.resolve(res.data)
  // })
  // .catch((err) => {
  //   console.log(err)
  // })
  let data = Object.assign({}, commonParams, {})
  return service({
    url: '/toplist/detail',
    params: data
  })
}

export function getRankDetail(topid) {
  let data = Object.assign({}, commonParams, {
    id: topid
  })
  console.log(data)
  // 对象合并
  return service({
    method: 'GET',
    url: '/playlist/detail',
    params: data
  })
}
